package cn.elves.model.activity.service.stateflow.updater;

import cn.elves.model.activity.entity.constant.ActivityStateConstants;
import cn.elves.model.activity.service.stateflow.AbstractStateUpdater;
import org.springframework.stereotype.Component;


@Component
public class PassStateUpdater extends AbstractStateUpdater {


    @Override
    public Boolean doCheckRefuse(Long activityId, Integer curState) {
        return updateState(activityId, curState, ActivityStateConstants.REFUSE);
    }

    @Override
    public Boolean doClose(Long activityId, Integer curState) {
        return updateState(activityId, curState,ActivityStateConstants.CLOSE);
    }

    @Override
    public Boolean doDoing(Long activityId, Integer curState) {
        return updateState(activityId, curState,ActivityStateConstants.DOING);
    }
}
